﻿using Microsoft.Xna.Framework;
using System.Text;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SoucreGame.GLO;
using System.Collections.Generic;

namespace SoucreGame.DTO.Tru
{
    class CInfoLinh : CInfoNhanVat
    {
        public CInfoLinh(ContentManager conten, GameTime gameTime, SpriteBatch sp)
            : base(conten, gameTime, sp)
        {
            LoadDuLieuNhanVat();
        }
        public CInfoLinh()
            : base()
        {
            LoadDuLieuNhanVat();
        }
        private void LoadDuLieuNhanVat()
        {
            this.Ten = "Nha linh";
            this.Mau = 200;
            this.TocDoTanCong = 200;
            this.ToaDoHienTai = new Vector2(200, 200);
            this.PhamViTC = 6;
            this.SucTanCong = 6;
            this.SucPhongThu = 3;
            this.TrangThai = Trangthai.song;
            this.SttAnhBatDau = 1;
            this.SoLuongAnhChet = 12;
            this.SoLuongAnhTanCong = 8;
            this.SoLuongAnhDiChuyen = 1;
            this.ChuoiChet = "Chet ";
            this.ChuoiTanCong = "Tan cong ";
            this.ChuoiDiChuyen = "Tan cong ";
            if (this.Content != null)
            {
                this.ViTriAnh = Content.Load<Dictionary<string, Rectangle>>("Tower//Nha linh//Linh//xml");
                this.AnhNhanVat = Content.Load<Texture2D>("Tower//Nha linh//Linh//Linh");
            }
        }
    }
}
